package com.xuecheng.feginclient;

import com.example.content.model.dto.XcChooseCourseDto;
import com.example.content.model.dto.XcCourseTablesDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "learning-service-dev")
public interface MyCourseTablesClient {
    @PostMapping("/choosecourse/{courseId}")
    public XcChooseCourseDto addChooseCourse(@PathVariable("courseId")Long courseId);
    //    查询学习资格
    @PostMapping("/choosecourse/learnstatus/{courseId}")
    public XcCourseTablesDto getLearningStatus(@PathVariable("courseId")Long courseId);
}
